/*
** synt_lldi.c for asm in /home/vanet_c//proj-kw/asm/folder_syntax/synt_
** 
** Made by charles-edouard vanet
** Login   <vanet_c@epitech.net>
** 
** Started on  Thu Dec 13 18:25:01 2012 charles-edouard vanet
** Last update Fri Dec 14 17:41:49 2012 charles-edouard vanet
*/

#include	"../../../includes/asm.h"

int	synt_lldi(char **tab, t_list **list, t_my_file **my_file, char **name)
{
  int	i;

  i = 0;
  while (i < 2)
    {
      if (tab[1] != NULL && tab[2] != NULL)
	if (char_cmp(tab[2][0], REG) == 0 || char_cmp(tab[2][0], DIRECT_CHAR) == 0)
	  i++;
	else
	  {
	    my_free_tab(name);
	    register_msg(list, my_file, tab[2]);
	  }
      if (tab[1] != NULL && tab[2] != NULL && tab[3] != NULL)
	if (char_cmp(tab[3][0], REG) == 0)
	  i++;
	else
	  {
	    my_free_tab(name);
	    register_msg(list, my_file, tab[3]);
	  }
    }
  return (0);
}
